{% extends "base/base.html" %}
{% load i18n %}

{% block title %}{% trans "退出" %}{% endblock %}

{% block content %}
<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header bg-primary text-white">
                    <h4 class="mb-0">{% trans "退出" %}</h4>
                </div>
                <div class="card-body">
                    <p class="card-text">{% trans "您确定要登出吗?" %}</p>
                    <form method="post" action="{% url 'account_logout' %}">
                        {% csrf_token %}
                        {% if redirect_field_value %}
                        <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
                        {% endif %}
                        <button type="submit" class="btn btn-danger">{% trans "退出" %}</button>
                        <a href="/" class="btn btn-secondary">{% trans "取消" %}</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %} 